package com.kevin.spider.es.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.client.ClientConfiguration;
import org.springframework.data.elasticsearch.client.elc.ElasticsearchConfiguration;

/**
 * @author admin
 */
@Configuration
public class EsClientConfig extends ElasticsearchConfiguration {
    @Override
    public ClientConfiguration clientConfiguration() {
        return ClientConfiguration.builder()
                .connectedTo("wsl.localhost.com:9200")
                //.withBasicAuth("elastic", "VRrQPWCO8MH78KwLwGO9")
                .build();
    }
}
